import { CommandOptions } from 'element/share/command'
import { PEElement, register } from 'element/share/element'

import PELineElementCommand from './command.json'
import PELineElementGlobalCSS from '-!to-string-loader!postcss-loader!sass-loader!./global.scss'

export default class PELineElement extends PEElement {
  static nodeName = 'pe-line'

  static GLOBAL_CSS = PELineElementGlobalCSS

  constructor() {
    super()
    this.command.options = PELineElementCommand as CommandOptions
  }
}

register(PELineElement, ['pe-text'])
